.error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.error-modal {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.error-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fff2f0;
}

.error-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.error-icon {
  font-size: 24px;
}

.error-modal-title h3 {
  margin: 0;
  color: #ff4d4f;
  font-size: 18px;
  font-weight: 600;
}

.error-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.error-modal-close:hover {
  background-color: #f5f5f5;
  color: #666;
}

.error-modal-content {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.error-main-message {
  margin-bottom: 20px;
}

.error-main-message p {
  color: #ff4d4f;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

.error-details,
.warning-details {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 8px;
}

.error-details {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
}

.warning-details {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
}

.error-section-title,
.warning-section-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
}

.error-section-title {
  color: #ff4d4f;
}

.warning-section-title {
  color: #faad14;
}

.error-list,
.warning-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-item,
.warning-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.error-item:last-child,
.warning-item:last-child {
  margin-bottom: 0;
}

.error-bullet {
  color: #ff4d4f;
  margin-right: 8px;
  margin-top: 2px;
  flex-shrink: 0;
}

.warning-bullet {
  color: #faad14;
  margin-right: 8px;
  margin-top: 2px;
  flex-shrink: 0;
}

.error-item {
  color: #a8071a;
}

.warning-item {
  color: #ad6800;
}

.error-help-text {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.error-help-text p {
  margin: 0 0 12px 0;
  color: #52c41a;
  font-size: 14px;
}

.error-help-text ul {
  margin: 0;
  padding-left: 20px;
  color: #389e0d;
}

.error-help-text li {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.error-help-text li:last-child {
  margin-bottom: 0;
}

.error-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  background-color: #fafafa;
}

.error-modal-button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.error-modal-button-primary {
  background-color: #1890ff;
  color: white;
}

.error-modal-button-primary:hover {
  background-color: #40a9ff;
}

.error-modal-button-primary:active {
  background-color: #096dd9;
}

/* 滚动条样式 */
.error-modal-content::-webkit-scrollbar {
  width: 6px;
}

.error-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.error-modal-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.error-modal-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .error-modal {
    width: 95%;
    margin: 10px;
  }
  
  .error-modal-header {
    padding: 16px 20px;
  }
  
  .error-modal-content {
    padding: 20px;
  }
  
  .error-modal-footer {
    padding: 12px 20px;
  }
} 